/*
 * @Author: Mcc
 * @Date: 2024-07-09 10:51:37
 * @LastEditors: mcc 550539422@qq.com
 * @LastEditTime: 2024-07-10 11:32:10
 * @FilePath: \newsAnt\vite-project\src\main.ts
 * @Description:
 *
 * Copyright (c) 2024 by Mcc, All Rights Reserved.
 */
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import './style.css';
import App from './App.vue';
import router from './routers/index';
import * as icon from '@ant-design/icons-vue';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import 'animate.css';
// iconfont
import '@/assets/iconfont/iconfont.css';
import 'element-plus/dist/index.css';
import '@/assets/css/nprogress.css';
const app = createApp(App);
for (const [key, component] of Object.entries(icon)) {
  app.component(key, component);
}
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router);
app.mount('#app');
//这里稍微整理了一下代码 可以不按照这种写法，直接引入你的index.ts就好
//如果不明白也可直接复制
